<?php
session_start ();
if (@! $_SESSION ["name"])
	exit ( "非法操作" );
require_once 'include/conn.php';
//组id
$id = @$_POST ["id"];
$comment = @$_POST ["comment"];
$sql = "update team set comment='" . $comment . "' where id=" . $id;
$result = mysql_query ( $sql );
if ($result) {
	echo "修改成功";
} else {
	echo '修改失败';
}
?>